'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 给好友送赞
 * @author sundbcn@gmail.com (sun debing)
 */

var Code = require('../../../../consts/code');
var friendService = require('../../../../services/friendService');

module.exports = function (msg, session, next) {
    var role_id = session.uid;
    friendService.getRecommendRoleList(role_id, function (err, role_list) {
        if (!!err) {
            console.error(err);
            return next(null, {
                code: Code.FAIL
            });
        }
        return next(null, {
            code: Code.OK,
            result: {
                role_list: role_list
            }
        });
    });
};
